pp108 : addSeparator() Method (Context Menu)

addSeparator() Method (Context Menu)


This method adds a separator to the context menu.

Syntax

contextmenuID.addSeperator(sID,sInsertBeforeId);

Parameters

Parameter

Description

sID

Required. String that specifies the unique identifier of the menu item created.

sInsertBeforeId

Optional. String that specifies the menu item or separator or the ID of the menu item or separator above which the new menu item is to be added.When not specified, the menu item is added as the last item.


Return Value


Returns an object which is the menu item that is created.

See Also


contextmenu